package com.entity;

import org.apache.ibatis.type.Alias;

@Alias("BaseNews")
public class News extends BaseEntity {
	
	private static final long serialVersionUID = 1L;

	/**
	 * 编号
	 */
	private String id;

	/**
	 * 标题
	 */
	private String title;

	/**
	 * 内容
	 */
	private String content;

	/**
	 * 发布时间
	 */
	private String publishTime;

	/**
	 * 发布人
	 */
	private String publisher;

	/**
	 * 封面图片
	 */
	private String cover;

	/**
	 * 新闻栏目编号
	 */
	private String columnId;

	/**
	 * 浏览数量
	 */
	private Integer viewCount;

	/**
	 * 预留点赞数量
	 */
	private Integer likedCount;

	/**
	 * 预留评论数量
	 */
	private Integer reviewCount;

	/**
	 * 虚拟 栏目名称
	 */
	private String columnName;

	public News () {
		super();
	}

	public News (String id,String title,String content,String publishTime,String publisher,String cover,String columnId,Integer viewCount,Integer likedCount,Integer reviewCount) {
		this.id = id;
		this.title = title;
		this.content = content;
		this.publishTime = publishTime;
		this.publisher = publisher;
		this.cover = cover;
		this.columnId = columnId;
		this.viewCount = viewCount;
		this.likedCount = likedCount;
		this.reviewCount = reviewCount;
	}

	public String getId() {
		return this.id;
	}

	public void setId(String id) {
		this.id = id;
	}

	public String getColumnName() {
		return columnName;
	}

	public void setColumnName(String columnName) {
		this.columnName = columnName;
	}

	public String getTitle() {
		return this.title;
	}

	public void setTitle(String title) {
		this.title = title;
	}

	public String getContent() {
		return this.content;
	}

	public void setContent(String content) {
		this.content = content;
	}

	public String getPublishTime() {
		return this.publishTime;
	}

	public void setPublishTime(String publishTime) {
		this.publishTime = publishTime;
	}

	public String getPublisher() {
		return this.publisher;
	}

	public void setPublisher(String publisher) {
		this.publisher = publisher;
	}

	public String getCover() {
		return this.cover;
	}

	public void setCover(String cover) {
		this.cover = cover;
	}

	public String getColumnId() {
		return this.columnId;
	}

	public void setColumnId(String columnId) {
		this.columnId = columnId;
	}

	public Integer getViewCount() {
		return this.viewCount;
	}

	public void setViewCount(Integer viewCount) {
		this.viewCount = viewCount;
	}

	public Integer getLikedCount() {
		return this.likedCount;
	}

	public void setLikedCount(Integer likedCount) {
		this.likedCount = likedCount;
	}

	public Integer getReviewCount() {
		return this.reviewCount;
	}

	public void setReviewCount(Integer reviewCount) {
		this.reviewCount = reviewCount;
	}

	@Override
	public String toString() {
		return "News[id=" + id+ ", title=" + title + ", content=" + content + ", publishTime=" + publishTime + ", publisher=" + publisher + ", cover=" + cover + ", columnId=" + columnId + ", viewCount=" + viewCount + ", likedCount=" + likedCount + ", reviewCount=" + reviewCount + "]";
	}


}

